This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
RE: LS2J Error: Threw java.lang.classNotFoundException: ~Keiko Cisfooterynds 22.Oct.03 06:37 AM a Web browser Applications Development 6.0.2 CF1All Platforms
I got the same error when I attempted to do a similar operation.
I bet that you are working on a Notes 6 client and a Domino 5 server.
This is exactly my problem, so I suggest that you make a Local copy and run your script from there. I think that you will find that it works proving that the server is not R6.
Another test that you can do is this:
1. Create a Java Script Library called xlib containing the following:
public class calculator {
public int add(int a, int b) { return a + b; }
public int div(int a, int b) { return a / b; }
public int mul(int a, int b) { return a * b; }
public int sub(int a, int b) { return a - b; }
}
2. Create a LotusScript Agent which uses the library
Option Public
Use "xlib"
Uselsx "*javacon"
Sub Initialize
Dim mySession As JavaSession
Dim myClass As JavaClass
Dim calculator As JavaObject
Dim a,b,c As Integer
Set mySession = New JavaSession()
Set myClass = mySession.GetClass("calculator")
Set calculator = myClass.CreateObject()
a = 10
b = 5
c = calculator.mul(a,b)
MessageBox "a * b = " & c
End Sub